//
// Created by wkm on 2023-12-03.
//

#ifndef MYSYSTEMCLEARNING_FULL_ADDER_H
#define MYSYSTEMCLEARNING_FULL_ADDER_H

#include "systemc.h"

SC_MODULE(full_adder) {
    sc_in<bool> a, b, cin;
    sc_out<bool> sum, cout;

    void prc_full_adder();

    SC_CTOR(full_adder) {
        SC_METHOD(prc_full_adder);
        sensitive << a << b << cin;
    }
};


#endif //MYSYSTEMCLEARNING_FULL_ADDER_H
